package com.atguigu.spzx.service;


import com.atguigu.spzx.model.dto.system.LoginDto;
import com.atguigu.spzx.model.dto.system.SysRoleDto;
import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysRole;
import com.atguigu.spzx.model.entity.system.SysUser;
import com.atguigu.spzx.model.vo.system.LoginVo;
import com.github.pagehelper.PageInfo;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.Map;


public interface SysUserService {


    LoginVo login(LoginDto loginDto);


    Map<String, String> getUserInfo(String token);

    void logout(String token);

    PageInfo<SysUser> findPage(SysUserDto sysUserDto, Integer pageNum, Integer pageSize);

    void saveUser(SysUser sysUser);

    void updateUser(SysUser sysUser);

    void removeById(Long id);

    SysUser findByUsername(SysUser sysUser);

}
